package me.sealer.ssm.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 功能描述： $ LoginRequest
 *
 * @author sealer
 * @email 1178884049@qq.com
 * @date 2019年12月20日 13时34分15秒
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "常规账户登录请求参数")
public class AccountLoginRequest implements LoginRequest {
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @NotBlank(message = "登录密码不能为空")
    @ApiModelProperty(value = "登录密码", required = true)
    private String password;

    @NotBlank(message = "图形验证码不能为空")
    @ApiModelProperty(value = "图形验证码", required = true)
    private String imageTokenName;

    @NotBlank(message = "记住密码选项不能为空")
    @ApiModelProperty(value = "是否记住密码", required = true, dataType = "java.lang.Boolean", allowableValues = "true, false", example = "true")
    private Boolean rememberMe;
}
